-- GENERATED SPELL FOR [Seasoned Guardian] --


function spell0_13328(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(19130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13328', 0, 1)
end

function spell1_13328(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_13328', 5268, 1)
end

function Sorts_13328(pUnit, Event)
local choix_sorts_13328 = math.random(0, 1)
if choix_sorts_13328 == 0 then
pUnit:RegisterEvent('spell0_13328', 1, 1)
end
if choix_sorts_13328 == 1 then
pUnit:RegisterEvent('spell1_13328', 1, 1)
end
end

function mob13328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13328', math.random(1500, 3000), 1)
end

function mob13328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13328, 1, 'mob13328_Action')
RegisterUnitEvent(13328, 2, 'mob13328_Leave')
RegisterUnitEvent(13328, 3, 'mob13328_Kill')
RegisterUnitEvent(13328, 4, 'mob13328_Die')
